package com.gurun.camera.account.model;

import com.danale.sdk.platform.constant.user.UserType;
import com.danale.sdk.platform.result.v5.userlogin.UserLoginResult;
import com.danale.sdk.platform.service.v5.AccountService;

import rx.Observable;

/**
 * Created by danal on 2016/9/9.
 */

public class LoginModelImpl implements ILoginModel {
    @Override
    public Observable<UserLoginResult> login(String account, String password) {
         return AccountService.getService().login(1,account,password, account.contains("@") ? UserType.EMAIL : UserType.PHONE,"", "",null);
    }
}
